﻿// MyNotes - Free Sticky Notes
// Copyright (C) 2011 Alexandre Vicenzi
// 
// This program is free software; you can redistribute it and/or modify it under 
// the terms of the GNU General Public License as published by the Free Software 
// Foundation; either version 3 of the License, or (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful, but WITHOUT 
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along with 
// this program; if not, write to the Free Software Foundation, Inc., 
// 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace MyNotes
{
    public enum NoteColor { Blue = 0, Green = 1, Pink = 2, Purple = 3, Yellow = 4, White = 5 }

    static class AnnotationColor
    {
        public static Color GetBaseColor(NoteColor color)
        {
            switch (color)
            {
                //case NoteColor.Blue:
                //    return ;
                case NoteColor.Green:
                    return Color.FromArgb(192, 255, 192);
                //case NoteColor.Pink:
                //    return ;
                case NoteColor.Purple:
                    return Color.FromArgb(225, 215, 255);
                case NoteColor.Yellow:
                    return Color.FromArgb(255, 255, 192);
                //case NoteColor.White:
                //    return ;
                default:
                    return Color.FromArgb(255, 255, 192); // Yellow
            }
        }

        public static Color GetTopColor(NoteColor color)
        {
            switch (color)
            {
                //case NoteColor.Blue:
                //    return ;
                case NoteColor.Green:
                    return Color.FromArgb(162, 253, 180);
                //case NoteColor.Pink:
                //    return ;
                case NoteColor.Purple:
                    return Color.FromArgb(223, 210, 253);
                case NoteColor.Yellow:
                    return Color.FromArgb(252, 252, 187);
                //case NoteColor.White:
                //    return ;
                default:
                    return Color.FromArgb(252, 252, 187); // Yellow
            }
        }

        public static Object[] GetAllColors()
        {
            Object[] colors = new Object[6];
            colors[0] = NoteColor.Blue ;
            colors[1] = NoteColor.Green ;
            colors[2] = NoteColor.Pink ;
            colors[3] = NoteColor.Purple ;
            colors[4] = NoteColor.White ;
            colors[5] = NoteColor.Yellow ;
            return colors;
        }

    }
}
